<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
/* $Id: Common.css 36 2008-01-14 10:35:01Z Bolik@xjgc.com $ */
*
{
  padding: 0;
  margin: 0;
}

html
{
  padding: 0;
  margin: 0;
}

body
{
  font-family: Consolas, Verdana, 新宋体;
  position: relative;
  margin: 0em;
  padding: 0em;
  background-color: #e4deae; /*font-size: 62.5%;*/
}

ul
{
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
ul{	
	color: #000000;
	font: 14px/16px Arial, Tahoma, Helvetica, sans-serif;
}

li a:link, li a:active{
  	font: bold 13px/18px Arial, Tahoma, Helvetica, sans-serif;
	text-decoration: none;
}

li a:visited{
  	font: bold 13px/18px Arial, Tahoma, Helvetica, sans-serif;
	text-decoration: none;
	color: #2d88a2;
}

li a:hover{
  	font: bold 13px/18px Arial, Tahoma, Helvetica, sans-serif;
	text-decoration: none;
	color: #8a8a8a;
}
*/

/* $Id: jquery.popup.css 67 2008-01-22 08:54:37Z Bolik@xjgc.com $ */

.popupPanel
{
  background-color: #cccc66;
  position: absolute;
  border: #0066cc thin solid;
  _width: 10em;
  min-width: 10em;
  _height: 10em;
  min-height: 10em;
}

.popupPanel a
{
  text-decoration: none;
}
.popupPanel a:link
{
  color: Blue;
}
.popupPanel a:visited
{
  color: purple;
}
.popupPanel a:hover
{
  color: #FF7F50;
}

.popupController
{
  
  border-bottom: #cc0000 thin solid;
}

/* $Id: jquery.treeview.css 57 2008-01-16 15:16:55Z Bolik@xjgc.com $ */

.treeview ul
{
  /* background-color: white; */
}

.treeview, .treeview ul
{
  padding: 0;
  margin: 0;
  list-style: none;
}

.treeview .hitarea
{
  background: url(images/treeview-default.gif) -64px -25px no-repeat;
  height: 16px;
  width: 16px;
  margin-left: -16px;
  float: left;
  cursor: pointer;
}
/* fix for IE6 */
* html .hitarea
{
  display: inline;
  float: none;
}

.treeview li
{
  margin: 0;
  padding: 3px 0pt 3px 16px;
}

.treeview a.selected
{
  background-color: #eee;
}

#treecontrol
{
  margin: 1em 0;
  display: none;
}

.treeview .hover
{
  color: red;
  cursor: pointer;
}

.treeview li
{
  background: url(images/treeview-default-line.gif) 0 0 no-repeat;
}
.treeview li.collapsable, .treeview li.expandable
{
  background-position: 0 -26px;
}

.treeview .expandable-hitarea
{
  background-position: -80px -3px;
}

.treeview li.last
{
  background-position: 0 -1616px;
}
.treeview li.lastCollapsable, .treeview li.lastExpandable
{
  background-image: url(images/treeview-default.gif);
}
.treeview li.lastCollapsable
{
  background-position: 0 -111px;
}
.treeview li.lastExpandable
{
  background-position: -32px -67px;
}

.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea
{
  background-image: none;
}

.treeview-red li
{
  background-image: url(images/treeview-red-line.gif);
}
.treeview-red .hitarea, .treeview-red li.lastCollapsable, .treeview-red li.lastExpandable
{
  background-image: url(images/treeview-red.gif);
}

.treeview-black li
{
  background-image: url(images/treeview-black-line.gif);
}
.treeview-black .hitarea, .treeview-black li.lastCollapsable, .treeview-black li.lastExpandable
{
  background-image: url(images/treeview-black.gif);
}

.treeview-gray li
{
  background-image: url(images/treeview-gray-line.gif);
}
.treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable
{
  background-image: url(images/treeview-gray.gif);
}

.filetree li
{
  padding: 3px 0 2px 16px;
}
.filetree span.folder, .filetree span.file
{
  padding-left: 16px;
  display: block;
  height: 15px;
}
.filetree span.folder
{
  background: url(images/folder.gif) 0 0 no-repeat;
}
.filetree span.file
{
  background: url(images/file.gif) 0 0 no-repeat;
}
</style>
	 <script type="text/javascript">  
		function follow_initdata(){
		 }
		function follow_submit(){return 0};
	 </script>
</head>

<body>

<!--边框内容-->
<table border="0" cellpadding="0" cellspacing="0" align="center" class="frame_tab_content">
  <tr>
    <td width="6" style="background:url(images/frame_second_1.gif) repeat-y"></td>
    <td class="frame_tab_tree">
    
<div style="height:25px; width:189px;padding-top:3px;text-align:center;background-image:url('images/resources_fzcb_left_line.gif');"><b>业务模块树</b></div>
<div id="0div" class="tree_div_height" align="left"></div>
    
	</td>
    <td width="7" style="background:url(images/frame_second_2.gif) repeat-y"></td>
    <td class="frame_tab_right">
	<!--右部内容开始-->
		<div id="ListAreaDiv" style="width:100%;word-wrap: break-word;margin-left:0px;padding-left: 1px;"></div>
	<!--右部内容结束-->
	</td>
    <td width="6" style="background:url(images/frame_second_3.gif) repeat-y"></td>
  </tr>
</table>
<!--边框封底-->
<table border="0" cellpadding="0" cellspacing="0" align="center" class="frame_tab">
  <tr><td width="6"><img src="images/frame_third_1.gif" width="6" height="6" /></td><td style="background:url(images/frame_third_2.gif) repeat-x;width:99%;"></td><td width="6"><img src="images/frame_third_3.gif" width="6" height="6" /></td></tr>
</table>
<!--边框结束-->

<script type="text/javascript">
var treejson = null;
// pt.submit({url:"/server/dev/quickBuild/buildmktree.do", callback:[cbTree], param:{'store.s_id':sid} });
 function cbTree(d,o){
 treejson = [d];
 }
//======= 树形数据 =====
var treejson = [{"item":[{"item":[{"item":[{"item":[{"text":"中文之一的一","check":"1","id":"11032519846300","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]}],"text":"中文之一","check":"1","id":"11032519846200","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]}],"text":"中文","check":"1","id":"110323153343100","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]},{"item":[{"text":"项目之一","check":"1","id":"11032519846500","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]}],"text":"项目","check":"1","id":"110323153343200","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]}],"text":"中文项目","check":"1","id":"1103231533430","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]},{"item":[{"text":"外文","check":"1","id":"110323153343400","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]},{"text":"项目","check":"1","id":"110323153343500","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]}],"text":"外文项目","check":"1","id":"110323153343300","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]},{"text":"帮助","check":"1","id":"110323153343600","userdata":[{"content":"","name":"url"},{"content":"","name":"data"}]}],"check":"1","id":"0"}];
//======= 是否显示树型节点 ======	
	function clickTree(pmid){
		if (document.getElementById(pmid+"div")!=null)
		(document.getElementById(pmid+"div").style.display=="none")?document.getElementById(pmid+"div").style.display="":document.getElementById(pmid+"div").style.display="none";
	}
//=======树形处理 开始 ======
    var top = {id:0,text:'根'};
	var f=function(top,f){
	   if(top.item != undefined){
		for (var j=0; j<top.item.length; j++){
		   if(document.getElementById(top.id+"div")!=null)
		   document.getElementById(top.id+"div").innerHTML += '<li id="'+top.item[j].id+'li" style="list-style-type:none"><a href="javascript:void(0);" onclick="clickTree(\''+top.item[j].id+'\');getOpertions(\''+top.item[j].id+'\',proget(\'project_sid\'));">'+top.item[j].text+'</a><ul <ul class="treeview-popup" id="'+top.item[j].id+'div" style="display:none;cursor:hand;padding-left:15px;margin:0px;"></ul></li>';
		   f(top.item[j],f);
		}
		}
	}
    f(treejson[0],f);
//=======树形处理 结束 ======
 //alert(document.getElementById("0div").innerHTML);
//=======给树加图标 开始 ======
 function getTreeElements(oBox) {
	var d= oBox || document;
	var children = d.getElementsByTagName("*") || document.all;
	var elements = new Array();
	var resultstr="";
		for (var ii = 0; ii < children.length; ii++) {
			resultstr += children[ii].tagName+"~~"+children[ii].type+"~~"+children[ii].name+"~~"+children[ii].id+"\n";
			if (children[ii].tagName == "LI") {
				   elements.push(children[ii]);
			}
		}
		//alert(resultstr);
		return elements;
	}

getTreeElements(document.getElementById("0div"));
//=======给树加图标 结束 ======

//=======模块operations=====
// var opers = {"body":{"d1":{"header":{"id":"select","name":"select","children":{"project_id":{},"module_id":{},"oprt_id":{},"oprt_name":{},"oprt_comments":{},"template_id":{},"page_url":{},"table_id":{}}},"data":[{"project_id":"141857","module_id":"110323153343100","oprt_id":"96855","oprt_name":"delete","oprt_comments":"删除","template_id":"","page_url":"","table_id":"96831"},{"project_id":"141857","module_id":"110323153343100","oprt_id":"96857","oprt_name":"selectAsFK","oprt_comments":"外键查询","template_id":"","page_url":"","table_id":"96831"},{"project_id":"141857","module_id":"110323153343100","oprt_id":"96843","oprt_name":"viewMain","oprt_comments":"显示主页面","template_id":"","page_url":"index.html","table_id":"96831"},{"project_id":"141857","module_id":"110323153343100","oprt_id":"96845","oprt_name":"viewAdd","oprt_comments":"添加","template_id":"","page_url":"viewAdd.html","table_id":"96831"},{"project_id":"141857","module_id":"110323153343100","oprt_id":"96847","oprt_name":"viewEdit","oprt_comments":"修改","template_id":"","page_url":"viewEdit.html","table_id":"96831"},{"project_id":"141857","module_id":"110323153343100","oprt_id":"96849","oprt_name":"select","oprt_comments":"查询","template_id":"","page_url":"select.html","table_id":"96831"},{"project_id":"141857","module_id":"110323153343100","oprt_id":"96851","oprt_name":"add","oprt_comments":"添加","template_id":"","page_url":"","table_id":"96831"},{"project_id":"141857","module_id":"110323153343100","oprt_id":"96853","oprt_name":"edit","oprt_comments":"修改","template_id":"","page_url":"","table_id":"96831"}],"pagination":{"visitId":"1269523556195","pageIndex":1,"pageSize":100,"totalPages":0,"totalRecords":0,"currentPageSize":8,"isNextPageAvailable":false,"isPreviousPageAvailable":false}}}};
 function getOpertions(mkid,sid){
     document.getElementById("ListAreaDiv").innerHTML = "";
//     pt.submit({url:'/server/dev/pt_operation/select.do',callback:[cbOperations],param:{'model.mkid':mkid,'model.sid':sid}});
 }
 function cbOperations(d,o){
     var html_str = '<table border="0" cellpadding="0" cellspacing="0" align="center" class="frame_tab_content"><tr height=30><td>选择</td><td>操作名称</td><td>操作英文名称</td><td>操作模块id</td><td>页面URL</td></tr>';
     var oprtObj = d.body.d1.data;
     for(var i=0;i<oprtObj.length;i++){
       html_str += '<tr height=30><td><a href="javascript:void(0);" onclick="getOpertionDatas(\''+oprtObj[i].oprt_id+'\')"><'+oprtObj[i].oprt_id+'></a></td><td>'+oprtObj[i].oprt_comments+'</td><td>'+oprtObj[i].oprt_name+'</td><td>'+oprtObj[i].module_id+'</td><td>'+oprtObj[i].page_url+'</td></tr>';
       html_str += '<tr><td colSpan="5"><div id='+oprtObj[i].oprt_id+'detail></div></td></tr>';
     }
     html_str += '</table>';
     if(oprtObj.length>0)
     document.getElementById("ListAreaDiv").innerHTML = html_str;
     //alert(document.getElementById("ListAreaDiv").innerHTML);
 }
 //getOpertions('110323153343100',proget("project_sid"));

//========模块数据块 d1 =========
// var oper_datas = {"body":{"d1":{"header":{"id":"select","name":"select","children":{"oprt_det_id":{},"oprt_id":{},"dataarea_order":{},"views_provider":{},"views_prov_mid":{},"contents_provider":{},"contents_prov_mid":{},"oprt_type":{},"oprt_colid":{}}},"data":[{"oprt_det_id":"121140","oprt_id":"121139","dataarea_order":"1","views_provider":"177140","views_prov_mid":"11032519846300","contents_provider":"","contents_prov_mid":"","oprt_type":"","oprt_colid":""}],"pagination":{"visitId":"1269576608704","pageIndex":1,"pageSize":100,"totalPages":0,"totalRecords":0,"currentPageSize":1,"isNextPageAvailable":false,"isPreviousPageAvailable":false}}}};
 function getOpertionDatas(oprtid){
     document.getElementById(oprtid+"detail").innerHTML="";
//     pt.submit({url:'/server/dev/pt_operation_detail/select.do',callback:[cbOperationDatas],param:{'model.oprt_id':oprtid}});
 }
 function cbOperationDatas(d,o){
     var oprt_datas = d.body.d1.data;
     var html_obj = "";
     for(var i=0;i<oprt_datas.length;i++){
       //document.getElementById(oprt_datas[i].oprt_id+"detail").innerHTML += oprt_datas[i].oprt_det_id+"~~"+oprt_datas[i].oprt_id+"~~"+oprt_datas[i].dataarea_order;
         
         var html_str = '<table border="0" cellpadding="0" cellspacing="0" align="center" class="frame_tab_content" Bgcolor="#f5970"><tr height=30><td>显示列表所属模块</td><td>显示布局</td><td>数据来源所属模块</td><td>数据来源</td><td>操作类型</td><td>操作业务元素</td></tr>';
         html_str += '<tr height=30><td>'+oprt_datas[i].views_prov_mid+'</td><td>'+oprt_datas[i].views_provider+'</td><td>'+oprt_datas[i].contents_prov_mid+'</td><td>'+oprt_datas[i].contents_provider+'</td><td>'+oprt_datas[i].oprt_type+'</td><td>'+oprt_datas[i].oprt_colid+'</td></tr>';
         html_str += '</table>';
         document.getElementById(oprt_datas[i].oprt_id+"detail").innerHTML = html_str;
     }
 }
</script>
</body>

</html>